package com.fowo.api.model.process.product.item;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 加工单子表 导入导出辅助模型 */
@Getter
@Setter
public class ProcessProductItemExcelPo {

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "所属加工单")
  private String parentProcessProductRemarks;

  @ExcelIgnore
  @ExcelProperty(value = "所属加工单")
  private Long parentProcessProduct;

  @Size(max = 50, message = "SKU长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "SKU")
  private String sku;

  @NotNull(message = "产品不能为空")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*产品")
  private String productIdName;

  @ExcelIgnore
  @ExcelProperty(value = "*产品")
  private Long productId;

  @NotNull(message = "加工费不能为空")
  @ExcelProperty(value = "*加工费")
  private java.math.BigDecimal processFee;

  @NotNull(message = "数量不能为空")
  @ExcelProperty(value = "*数量")
  private Long num;

  @ExcelProperty(value = "小计")
  private java.math.BigDecimal subtotal;

  @Size(max = 50, message = "备注长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "备注")
  private String remark;
}
